package com.wtang.dao;

import com.wtang.beans.Student;

import java.util.List;
import java.util.Map;

/**
 * ClassName:IStudentDao
 * Package:com.wtang.dao
 * Description:
 *
 * @Date:2019/7/30 22:10
 * @Author:wtang
 */
public interface IStudentDao {
    void insertStudent(Student student);
    void insertStudentCacheId(Student student);

    void deleteStudentById(int id);
    void updateStudent(Student student);

    List<Student> selectAllStudents();
//    Map<String, Object> selectAllStudentsMap();
    Student selectStudentById(int id);
    List<Student> selectStudentsByName(String name);
    List<Student> selectStudentsByCondition(Map<String, Object> map);
    List<Student> selectStudentsByCondition01(String name, int age);
    List<Student> selectStudentsByCondition02(Student student);
    List<Student> selectStudentsByIf(Student student);
    List<Student> selectStudentsByWhere(Student student);
    List<Student> selectStudentsByChoose(Student student);
    List<Student> selectStudentsByForeach(int[] ids);
    List<Student> selectStudentsByForeach01(List<Integer> ids);
    List<Student> selectStudentsByForeach02(List<Student> stus);
    List<Student> selectStudentsBySqlFragment(List<Student> stus);
}
